inverse of a matrix by elementary operations